package com.lbd.finance.bean;

import com.lbd.base.bean.AbstractEntity;
import lombok.*;
import org.hibernate.annotations.DynamicUpdate;
import org.jeecgframework.poi.excel.annotation.Excel;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.math.BigDecimal;
import java.util.Date;

@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@DynamicUpdate
@Entity
/**
 * 交易记录-平台
 */
public class WebTradeDetail extends AbstractEntity {
    //交易单号
    @Excel(name = "交易单号")
    private String trdNo;
    //交易类型
    private Integer trdType;
    //交易方向
    private Integer trdDirec;
    //交易金额
    @Excel(name = "交易金额（元）")
    private BigDecimal trdAmt;
    //可用金额
    @Excel(name = "可用金额（元）")
    private BigDecimal balance;
    //详情
    @Excel(name = "详情")
    private String remark;
    //交易时间
    private Date trdTime;
    //是否统计更新过统计余额
    @Column(name = "is_statistic", columnDefinition = "int default 0")
    private Boolean isStatistic;
}
